package zd.cornermemory.utils;

import android.content.Context;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;

import zd.cornermemory.R;

/**
 * Created by Admin on 2021/8/27.
 */

public class PicassoUtil {

    /**
     * 显示图片
     * @param mContext
     * @param url
     * @param photoView
     */
    public static void showPicture(Context mContext, String url, ImageView photoView){
        url = "file://"+url;
        Picasso.with(mContext).load(url).placeholder(R.mipmap.loading).error(R.mipmap.image_error).into(photoView);
    }
}
